package com.qing.microservices.esstarter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Collections;
import java.util.List;

/**
 * @author guoqf
 * @date 2022/4/29 15:13
 */
//@ConfigurationPropertiesScan(basePackageClasses = ElasticSearchStarterConfigurationProperties.class)
@Data
//@Component
@ConfigurationProperties(prefix = "qing.microservices.elastic-search")
public class ElasticSearchStarterConfigurationProperties {
    private String clusterName = "es-cluster";

    private List<String> clusterNodes = Collections.singletonList("127.0.0.1:9300");

    private String userName = "elastic";

    private String password = "elastic";

}
